/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac3.domain;

import java.sql.Date;

/**
 * Classe POJO (Plain Old Java Object) que representa una fila de la taula tb_request_note
 * @author Gerard
 */
public class RequestNote extends BaseDomain {
    
    private Integer requestId;
    
    private Integer userId;
    
    private String description;

    public RequestNote() {
    }

    public RequestNote(Integer id, Date creationDate, Integer requestId, Integer userId, String description) {
        super(id, creationDate);
        this.requestId = requestId;
        this.userId = userId;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getRequestId() {
        return requestId;
    }

    public void setRequestId(Integer requestId) {
        this.requestId = requestId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return description + " (user_id = " + userId +")";
    }
    
    
}
